<template>
  <div id="vHeader">
    <dl class="m-header">
      <dt class="f-l relaImg">
        <img src="~images/icon/people-ico.png" />
      </dt>
      <dd>
        <p><span>{{Name}}</span>{{MobileNo}}</p>
        <p>{{CorpName}}</p>
      </dd>
    </dl>
  </div>
</template>

<script>
export default {
  data () {
    return {
      Name:'',
      CorpName:'',
      MobileNo:'',
    }
  },
   created(){
    this.getdata();
  },
  methods: {
    getdata(){
      var self = this;
      var userinfo = JSON.parse(localStorage.userinfo);
      if(userinfo.UserBizType == 'Hospital'){
        self.CorpName = userinfo.BelongName;
      } else {
        self.CorpName = userinfo.BelongName;
      }
      self.Name = userinfo.Name;
      self.MobileNo = userinfo.MobileNo;
    },
  }
}
</script>